#include<stdio.h>
int max(int a,int b,int c)
{
	int m;
	m=a;
	if(m<b)
		m=b;
	if(m<c)
		m=c;
	return m;
}
#define MAX(a,b,c) ((a>b?a:b)>(b>c?b:c)?(a>b?a:b):(b>c?b:c))
int main()
{
	int a0,b0,c0;
	float M1,M2;
	scanf("%d%d%d",&a0,&b0,&c0);
	M1=max(a0,b0,c0);
	printf("%.3f\n",M1);
	M2=MAX(a0,b0,c0);
	printf("%.3f\n",M2);
}
